<div align="center" style="background-color : #001b33;"><br/><?php
if(isset($errore)){
	echo "<div class=\"div_errore_registrati\">$errore</div>";
}

?>
<form name="form_registrati" id="form_registrati" method="post" action="<?php echo base_url(); ?>registrati/invia_form"><fieldset >
    <legend>Form registrazione:</legend><table cellspacing=0 cellpadding=0 border=0 width=400 align="center">
	<tr><td colspan=2 height=20></td></tr>
	<tr>
		<td class="testo_form_invia"><label for="nome">Nome :</label></td>
		<td align="right"><input type="text" id="nome"  value="<?php if(isset($nome)) echo $nome; ?>" name="nome" class="campo_form"></td>
	</tr>
	<tr><td colspan=2 height=10></td></tr>
	
	<tr>
		<td class="testo_form_invia"><label for="cognome">Cognome : </label></td>
		<td align="right"><input type="text" value="<?php if(isset($cognome)) echo $cognome; ?>" id="cognome" name="cognome" class="campo_form"></td>
	</tr>
	<tr><td colspan=2 height=10></td></tr>
	
	<tr>
		<td class="testo_form_invia"><label for="email">Email : </label></td>
		<td align="right"><input type="text" value="<?php if(isset($email)) echo $email; ?>" id="email" name="email" class="campo_form"></td>
	</tr>
	<tr><td colspan=2 height=10></td></tr>
	
	<tr>
		<td class="testo_form_invia"><label for="password">Password : </label></td>
		<td align="right"><input type="text" value="<?php if(isset($password)) echo $password; ?>" id="password" name="password" class="campo_form"></td>
	</tr>
	<tr><td colspan=2 height=20></td></tr>
	
	<tr>
		<td class="link_informativa" colspan=2>
		<input type="checkbox" name="informativa" id="informativa" <?php 
			if(isset($informativa) && $informativa=="on")echo "checked";
		?> <a href="<?php echo base_url()."registrati/privacy" ; ?>" target="_blank">Accetta  la nostra Informativa sulla privacy</a> </td>
	</tr>
	<tr><td colspan=2 height=20></td></tr>
	
	<tr style="font-size : 9pt ; ">
		<td align="left"><input type="button" value="Torna Indietro" class="bottone_jquery" onclick="window.location = '<?php echo base_url();?>main'"></td>
		<td  align="right"><input type="button" value="Registrati" class="bottone_jquery" onclick="registrati.invia_form();"></td>
	</tr>
	<tr><td colspan=2 height=10></td></tr>
</table>
</fieldset>
</form><br/></div>
<script language="javascript">

	// Questa è la parte che viene sparata all'avvio
$(function() {
	registrati.init();
});

</script>
